def encrypt(key,message):        
    translated=""
    message=message.upper()
    for ch in message:
        if ord(ch)<ord("A") or ord(ch)>ord("Z"):
            continue
        else:
            offset = ord(ch) - 65
            translated = translated + chr(((key*offset)%26)+65)
    return translated


print(encrypt(9,"hello world"))
        